package com.kgdev.cweb.entities.i8n.pkeys;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the i8n_vc45 database table.
 * 
 */
@Embeddable
public class I8nShortPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="vc45_key", unique=true, nullable=false, length=45)
	private String vc45Key;

	@Column(name="lan_code", unique=true, nullable=false, length=45)
	private String lanCode;

    public I8nShortPK() {
    }
	public String getVc45Key() {
		return this.vc45Key;
	}
	public void setVc45Key(String vc45Key) {
		this.vc45Key = vc45Key;
	}
	public String getLanCode() {
		return this.lanCode;
	}
	public void setLanCode(String lanCode) {
		this.lanCode = lanCode;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof I8nShortPK)) {
			return false;
		}
		I8nShortPK castOther = (I8nShortPK)other;
		return 
			this.vc45Key.equals(castOther.vc45Key)
			&& this.lanCode.equals(castOther.lanCode);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.vc45Key.hashCode();
		hash = hash * prime + this.lanCode.hashCode();
		
		return hash;
    }
}